package com.wood.life.service.Impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.night.common.entity.life.Goods;
import com.night.common.entity.life.Question;
import com.wood.life.mapper.GoodsMapper;
import com.wood.life.mapper.QuestionMapper;
import com.wood.life.service.GoodsService;
import com.wood.life.service.QuestionService;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * author: dz
 * 2022-10-18-20:57
 */
@Service
@Transactional
public class QuestionServiceImpl implements QuestionService {
    @Autowired
    QuestionMapper questionMapper;


    @Override
    public void add(Question question) {

        //questionMapper.insert(question);
    }

    @Override
    public List<Question> getByCondition(Question question) {
        return questionMapper.getByCondition(question);
    }

    @Override
    public Question getById(Integer id) {
        return questionMapper.getById(id);
    }



    @Override
    public void updateById(Question question) {
        questionMapper.updateById(question);
    }

    @Override
    public void deleteById(Integer id) {
        questionMapper.deleteById(id);
    }


}
